package yanc.app

class Feedback {
    /*
    反馈内容
     */
    String content
    /*
    提交时间
     */
    Date createDate
    /*
    反馈类型 0-内容意见  1-产品建议  2-技术问题  3-其他
     */
    String types
    String contactWay

    static mapping = {
        table "sys_feedback"
        version false
        createDate(column: "create_date", sqlType: "datetime")
        content(column: "content", sqlType: "varchar(256)")
        types(column: "types", sqlType: "varchar(2)")
        contactWay(column: "contact_way", sqlType: "varchar(64)")
    }

    static constraints = {
        createDate(nullable: false, unique: false)
        content(nullable: true, unique: false)
        types(nullable: false, unique: false)
        contactWay(nullable: false, unique: false)
    }
}
